package com.tianyu.sports.exception;

import com.tianyu.sports.enums.ResultEnum;

/**
 * @author Jzen
 * @Title: sports
 * @Package com.tianyu.sports.exception
 * @Description: ${todo}
 * @date 2018/5/28 10:33
 */
public class VipException extends RuntimeException {
    private Integer code;

    public VipException(ResultEnum resultEnum){
        super(resultEnum.getMsg());
        this.code = resultEnum.getCode();
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public Integer getCode() {
        return code;
    }
}
